/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.misc.sap.jco.demo.rfc;

import java.util.Date;

/**
 * 基本变更信息
 * <p/>
 * 一个简单的值对象, 用于接收 RFC 返回的结果
 * 现在不完善, 基本类型需要使用包装器类型
 *
 * @author vacoor
 */
public abstract class BaseChangeInfo {
    private String matnr;   // 物料号
    private Date datum;     // 变更日期

    public void setMatnr(String matnr) {
        this.matnr = matnr;
    }

    public String getMatnr() {
        return this.matnr;
    }

    public Date getDatum() {
        return datum;
    }

    public void setDatum(Date datum) {
        this.datum = datum;
    }

    @Override
    public String toString() {
        return this.getClass().getSimpleName() + ": {" +
                "matnr='" + getMatnr() + "'" +
                "datum='" + getDatum() + "'" +
                "}";
    }
}
